package com.dones.misc;

import java.util.Arrays;

public class SortingClasses {

	Class1 cA;
	Class1 cB;
	
	SortingClasses(){
		cA = new Class1();
		cB = new Class1();
		cA.setCurrency(234);
		cB.setCurrency(143);
		Class1[] classes = new Class1[2];
		classes[0] = cA;
		classes[1] = cB;
		Arrays.sort(classes);
		System.out.println(classes[0].getCurrency());
	}
	
}
